body {
  background-color: #f5f5f5;
  margin: 0px;
  padding: 20px;
  color: #333;

  justify-content: center;
  /* 水平居中对齐 */
  align-items: center;
  /* 垂直居中对齐 */
  height: 950px;
  background: url(https://i.loli.net/2019/11/17/GAYyzeKsiWjP5qO.jpg);
  background-size: cover;
  /* 背景图片覆盖整个容器 */
  background-position: center;
  /* 背景图片居中显示 */
}

h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
}

input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 300px;
  margin-right: 10px;
  font-size: 14px;
}

input[type="button"] {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  /*鼠标悬停显示小手*/
  transition: background-color 0.3s;
  /*背景颜色变化时过度效果*/
}

input[type="button"]:hover {
  background-color: #2980b9;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  position: sticky;
  top: 0;
  background-color: #3498db;
  color: white;
  z-index: 1;
}

tr:hover {
  background-color: rgba(245, 245, 245, 0.5);
}

input[value="编辑"] {
  background-color: #27ae60;
}

input[value="编辑"]:hover {
  background-color: #219a52;
}

input[value="删除"] {
  background-color: #e74c3c;
}

input[value="删除"]:hover {
  background-color: #c0392b;
}

.table-container {
  margin: 20px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  width: 100%;
  height: 800px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 自定义滚动条样式 */
.table-container::-webkit-scrollbar {
  width: 8px;
  /* 滚动条宽度 */
}

.table-container::-webkit-scrollbar-thumb {
  background: #5783fc;
  /* 滚动条颜色 */
  border-radius: 4px;
  /* 滚动条圆角 */
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: #4776f7;
  /* 滚动条悬停颜色 */
}